<template>
  <a-modal :visible="currentVisible" :footer="null" @cancel="currentVisible=false">
    <video width="100%" controls :src="videoUrl">
      您的浏览器不支持h5标签
    </video>
  </a-modal>
</template>

<script>
  export default {
    data() {
      return {
      }
    },
    props: {
      videoUrl: {
        type: String,
        default: ''
      },
      visible: {
        type: Boolean,
        default: false
      }
    },
    computed: {
      currentVisible: {
        get() {
          return this.visible
        },
        set(val) {
          this.$emit('update:visible', val)
        }
      }
    },
    created() {
    },
    methods: {
     
    }
  }
</script>

<style scoped>
  .img /deep/ .ant-upload-list {
    display: none;
  }

  .my-img-list-wrapper {
    display: flex;
    flex-wrap: wrap;
  }

  .my-img-list {
    display: flex;
    flex-wrap: wrap;
  }

  .my-img-item {
    position: relative;
    width: 104px;
    height: 104px;
    padding: 8px;
    margin: 0 8px 30px 0;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
  }

  .my-img-item.red {
    border-color: #f5222d;
  }

  .my-img-item-con {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .my-img-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .my-img-item i {
    margin: 0 4px;
    cursor: pointer;
  }

  .my-img-item i svg {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
  }

  .my-img-action {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 102px;
    background: rgba(0, 0, 0, 0.3);
  }

  .my-img-item .my-img-item-con:hover .my-img-action {
    display: block;
  }

  .my-img-item .move-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -22px;
    display: flex;
    justify-content: space-between;
    text-align: center;
    font-size: 22px;
  }

  .img /deep/ .ant-upload-picture-card-wrapper {
    width: auto;
  }
</style>
